package com.yoga.entity;

import java.io.Serializable;

/**
 * yoga_coachprivate
 * @author 
 */
public class YogaCoachprivate implements Serializable {
    private Integer cpid;

    private String cpname;

    private String cptime;

    private Integer price;

    private static final long serialVersionUID = 1L;

    public Integer getCpid() {
        return cpid;
    }

    public void setCpid(Integer cpid) {
        this.cpid = cpid;
    }

    public String getCpname() {
        return cpname;
    }

    public void setCpname(String cpname) {
        this.cpname = cpname;
    }

    public String getCptime() {
        return cptime;
    }

    public void setCptime(String cptime) {
        this.cptime = cptime;
    }

    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        YogaCoachprivate other = (YogaCoachprivate) that;
        return (this.getCpid() == null ? other.getCpid() == null : this.getCpid().equals(other.getCpid()))
            && (this.getCpname() == null ? other.getCpname() == null : this.getCpname().equals(other.getCpname()))
            && (this.getCptime() == null ? other.getCptime() == null : this.getCptime().equals(other.getCptime()))
            && (this.getPrice() == null ? other.getPrice() == null : this.getPrice().equals(other.getPrice()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getCpid() == null) ? 0 : getCpid().hashCode());
        result = prime * result + ((getCpname() == null) ? 0 : getCpname().hashCode());
        result = prime * result + ((getCptime() == null) ? 0 : getCptime().hashCode());
        result = prime * result + ((getPrice() == null) ? 0 : getPrice().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", cpid=").append(cpid);
        sb.append(", cpname=").append(cpname);
        sb.append(", cptime=").append(cptime);
        sb.append(", price=").append(price);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}